package com.zhangxi.websqlit.file.service;

import com.zhangxi.websqlit.file.entity.SearchFileInfoEntity;
import com.zhangxi.websqlit.mybatis.entity.PtFileEntity;
import com.zhangxi.websqlit.mybatis.flexigrid.PadingRstType;
import com.zhangxi.websqlit.mybatis.flexigrid.PagingBean;
import org.springframework.http.ResponseEntity;

import java.io.InputStream;
import java.util.List;

public interface FileInfoService {
    String uploadFile(String fileName, InputStream inputStream, String parentUuid);

    PadingRstType<PtFileEntity> getFileListByPage(SearchFileInfoEntity entity, PagingBean paging);

    String mkdir(PtFileEntity entity);

    String queryFileInfoById(String fileUuid);

    PtFileEntity queryFileParentById(String fileUuid);

    ResponseEntity<byte[]> download(String fileUUId);

    List<PtFileEntity> queryFileList();

    ResponseEntity<byte[]> downloadPhone(String fileUUId);

}
